package com.bbs.core.service;

import java.util.List;

import com.bbs.core.model.Post;
import com.bbs.core.model.User;

/**
 * Created by Administrator on 2017/8/16.
 */
public interface PostService {

    Post selectByPrimaryKey(Integer id);
    
    List<Post> findAllPosts();

	List<Post> getPostsByTopicId(Integer topicId);

	void savePost(Post post, User user);

	void deletePost(int id);
	
	void updateByPrimaryKeySelective(Post record);

}
